<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/views/common/taglibs.jsp" %>

<!DOCTYPE>
<html>
<head>
    <!-- 引入通用js、css文件(xiaogq) -->
    <meta name="decorator" content="bootstrap"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/system/custom/entity/entity_list.css"/>
</head>
<body>
<div id="iframeAddress">
    <!-- 加载列表操作 -->
    <div class="button_list">
        <jsp:include page="/views/common/operation/sys_operation.jsp" flush="true" />
    </div>
    <!-- 加载过滤条件 -->
    <jsp:include page="/views/system/custom/operation/operation_search.jsp" flush="true" />
    <div class="menu">
        <span class="active operation_span" sysOperation="1">系统操作</span><span sysOperation="0">自定义操作</span>
    </div>
    <div class="entity_div">
        <table id="entity_table1"
               data-striped="true"
               data-toggle="table"
               data-show-columns="false"
               data-cookie="false"
               data-pagination="true"
               data-search="false"
               data-url="${ctx}/EntityOperation/queryEntityOperationList.do?sysOperation=1"
               data-side-pagination="server"
               data-checkbox-header="true"
               data-page-list="[10,20,30,50]"
               class="table">
            <thead>
            <tr>
                ${columns}
            </tr>
            </thead>
        </table>
    </div>
    <div class="entity_div" style="display: none;">
        <table id="entity_table0"
               data-striped="true"
               data-toggle="table"
               data-show-columns="false"
               data-cookie="false"
               data-pagination="true"
               data-search="false"
               data-url="${ctx}/EntityOperation/queryEntityOperationList.do?sysOperation=0"
               data-side-pagination="server"
               data-checkbox-header="true"
               data-page-list="[10,20,30,50]"
               class="table">
            <thead>
            <tr>
                ${columns}
            </tr>
            </thead>
        </table>
    </div>
</div>

<script>
    $(function(){
        $(".menu span").click(function(){
            var index=$(this).index();
            $(this).addClass("active operation_span").siblings().removeClass("active operation_span");
            $(".entity_div").eq(index).show().siblings(".entity_div").hide();
        });
    });
</script>
<!-- 引入出来表格列头操作按钮方法js(xiaogq) -->
<script type="text/javascript" src="${ctx}/js/system/operation/show_colOperation.js"></script>
<!-- 引入系统设置模块所有操作处理方法js(xiaogq) -->
<script type="text/javascript" src="${ctx}/js/system/operation/sys_operation.js"></script>
</body>
</html>
